package com.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.domain.entity.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface EmpService {

    List<Emp> findAll();

    Page<Emp> findBySearch(Params params);

    void add(Emp emp);

    void update(Emp emp);

    void delete(Integer id);

    Account login(Account teacher, String key, HttpServletRequest request);

    Emp findById(Integer id);

    void updatePassword(Account account);

    void updatePersonal(Account account);
}